package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 论坛发布记录文件表
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_BBS_FILE")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="论坛发布记录文件表",description="论坛发布记录文件表")
public class BbsFile implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/** 主键 */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "主键")
	private Long id;
	
	/** bbsid */
	@Column(name = "bbs_id" )
	@ApiModelProperty(value = "bbsid")
	private Long bbsId;
	
	/** 文件url */
	@Column(name = "url" )
	@ApiModelProperty(value = "文件url")
	private String url;
	
	/** 排序 */
	@Column(name = "sort" )
	@ApiModelProperty(value = "排序")
	private Integer sort;
	
	/** 文件类型（0 图片，1 视频，3 其他） */
	@Column(name = "type" )
	@ApiModelProperty(value = "文件类型（0 图片，1 视频，3 其他）")
	private Integer type;
	
	/** 创建时间 */
	@Column(name = "create_time" )
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	
}
